<?php
$this->breadcrumbs=array(
	$model->project->name=>array('project/status','id'=>$model->project->id),
	Yii::t('project','Project Subdivision')=>array('project/sub','id'=>$model->project->id),
	$model->name,
);

if($model->divide_projects_status == 1) {
	$diTrClass = 'success';
	$diStatus = Yii::t('project','Complete');
	$diContent = CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Unit Project Subdivision'), array('unitProject/sub', 'id'=>$model->id));
} else {
	$diTrClass = 'error';
	$diStatus = Yii::t('project','Incomplete');
	$diContent = '<i class="icon-minus-sign"></i>  ' . Yii::t('project','Unit Project Subdivision');
}

if($model->end_work_status == 1) {
	$endTrClass = 'success';
	$endStatus = Yii::t('project','Complete');
	$endContent = CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Unit Project Completion and Acceptance'), array('unitProject/end', 'id'=>$model->id));
} else {
	$endTrClass = 'error';
	$endStatus = Yii::t('project','Incomplete');
	$endContent = '<i class="icon-minus-sign"></i>  ' . Yii::t('project','Unit Project Completion and Acceptance');
}
	
?>

<table class="table table-hover">
	<caption class="text-info"><?php echo Yii::t('project','The unit project status table');?></caption>
	<thead>
		<tr>
			<th width="25%"><i class="icon-star-empty"></i><?php echo Yii::t('project','Unit Project Status');?></th>
			<th width="25%"><i class="icon-th-large"></i><?php echo Yii::t('project','Unit Project Steps');?></th>
			<th width="50%"><i class="icon-comment"></i><?php echo Yii::t('project','Unit Project Description');?></th>
		</tr>
	</thead>
	<tbody>
		<tr class="success">
			<td><?php echo Yii::t('project','Complete');?></td>
			<td><?php echo CHtml::link('<i class="icon-edit"></i>  ' . Yii::t('project','Unit Project Describe'), array('unitProject/describe', 'id'=>$model->id));?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project','Provide the basic details about this unit project');?></td>
		</tr>
		<tr class="<?php echo $diTrClass;?>">
			<td><?php echo $diStatus;?></td>
			<td><?php echo $diContent;?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project','Unit Project have to be subdivided into Segment Projects');?></td>
		</tr>
		<tr class="<?php echo $endTrClass;?>">
			<td><?php echo $endStatus;?></td>
			<td><?php echo $endContent;?></td>
			<td><i class="icon-hand-right"></i><?php echo Yii::t('project',
					'Upload the Unit Project Construction quality assessment form and fill in the Appearance Score');?></td>
		</tr>
	</tbody>
</table>
